From 69e3134fa4480508607918c77cbc3796e1ddf359 Mon Sep 17 00:00:00 2001 From: Rob Browning Date: Sun, 10 Apr 2011 10:34:26 -0500 Subject: [PATCH] Remove debian/dfsg-splitter since the split is now being handled in git. --- debian/dfsg-splitter | 135 ------------------------------------------- 1 file changed, 135 deletions(-) delete mode 100644 debian/dfsg-splitter diff --git a/debian/dfsg-splitter b/debian/dfsg-splitter deleted file mode 100644 index ab67063e6c1..00000000000 --- a/debian/dfsg-splitter +++ /dev/null @@ -1,135 +0,0 @@ -#!/bin/bash - -set -e -set -x - -# Usage: put the relevant emacs archive into the current directory and -# run the script. The resulting two orig.tar.gz files will be placed -# into a new ./split-tmp directory. - -emacs_archive_name="emacs-23.2.tar.bz2" -emacs_dir="emacs-23.2" -emacs_version="23.2" -emacs_major="23" -deb_src_rev="1" - -main_dir="$(pwd)/split-tmp/${emacs_dir}" -non_main_dir="$(pwd)/split-tmp/${emacs_dir}-non-dfsg" - -if ! test root = "`whoami`" -then - echo Use fakeroot. - exit 1 -fi - -if test -e split-tmp -then - echo "./split-tmp already exists - aborting" - exit 1 -fi - -mkdir ./split-tmp -pushd split-tmp - -umask 002 - -tar xf "../${emacs_archive_name}" - -find "${emacs_dir}" -name "*.elc" -exec rm {} + -find "${emacs_dir}"/info -type f \ - -not -name "COPYING" -not -name dir -exec rm {} + - -mkdir "${non_main_dir}" - -function move_to_non_main_dir() -{ - pushd "${emacs_dir}" - test "$1" - test ! -e "${non_main_dir}/$1" - cp -a --parents "$1" "${non_main_dir}/" - rm -r "$1" - popd -} - -function copy_to_non_main_dir() -{ - pushd "${emacs_dir}" - cp -a --parents "$1" "${non_main_dir}/" - popd -} - -function remove_from_main_dir() -{ - pushd "${emacs_dir}" - rm "$1" - popd -} - -# assumes someone has already copied file to non-main dir -function move_to_main_dir() -{ - pushd "${non_main_dir}" - cp -a --parents "$1" "${main_dir}/" - rm "$1" - popd -} - -# assumes someone has already copied file to non-main dir -function copy_to_main_dir() -{ - pushd "${non_main_dir}" - cp -a --parents "$1" "${main_dir}/" - popd -} - -# So both sides will have a copy (at the very least, version.el refers to it). -copy_to_non_main_dir "etc/COPYING" - -# verbatim dist only -move_to_non_main_dir "etc/CENSORSHIP" -move_to_non_main_dir "etc/copying.paper" -move_to_non_main_dir "etc/LINUX-GNU" -move_to_non_main_dir "etc/THE-GNU-PROJECT" -move_to_non_main_dir "etc/WHY-FREE" -move_to_non_main_dir "etc/GNU" -move_to_non_main_dir "etc/MOTIVATION" - -# reprinted with permissions or copyright mentioned -# no modification mention -move_to_non_main_dir "etc/INTERVIEW" - -# Assuming modification not allowed by default (emails, etc.) -move_to_non_main_dir "etc/COOKIES" -move_to_non_main_dir "etc/DEVEL.HUMOR" -move_to_non_main_dir "etc/JOKES" - -# This is used via debian/rules to track the nominal_ver. -copy_to_non_main_dir "lisp/version.el" - -# GFDL documentation in doc/ -move_to_non_main_dir "doc/lispintro" -move_to_non_main_dir "doc/lispref" -move_to_non_main_dir "doc/emacs" - -# doc/misc - -# Most doc/misc files don't appear to be compatible with the DFSG. -move_to_non_main_dir "doc/misc" - -# doc/misc files that do appear to be compatible with the DFSG -move_to_main_dir "doc/misc/faq.texi" - -# Copy back files we want in both archives. -copy_to_main_dir "doc/misc/ChangeLog" -copy_to_main_dir "doc/misc/Makefile.in" - - -BZIP2=-9v tar cjpSf \ - "emacs${emacs_major}_${emacs_version}+${deb_src_rev}.orig.tar.bz2" \ - "${emacs_dir}" - -BZIP2=-9v tar cjpSf \ - "emacs${emacs_major}-non-dfsg_${emacs_version}+${deb_src_rev}.orig.tar.bz2" \ - "${emacs_dir}"-non-dfsg - -exit 0 -- 2.30.2